package com.carkeeper.system.service;

import com.carkeeper.common.utils.Result;
import com.carkeeper.system.pojo.Role;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

/**
 * @author 周志雄
 * @version 1.0
 * @date 2020/11/24 14:41
 */
public interface RoleService {

    /**
     * 分页+条件查询
     * @param map
     * @return
     */
    Page<Role> queryByCondition(Map map, int page , int pagesize);

    List<Role> findAll();


    Result delete(Long id);

    Result add(Role role);

    Result update(Role role);
}
